Application of least squares to the search for periodicities.