attempting to test with quarter-sample sine wave. Expected output of the algorithm is 3