Improved Rife algorithm for sine wave frequency estimation