Amplitude and Phase Estimation of a Sinusoid