Efficient algorithm of the transcorrelated method for periodic systems.