Sinewave Generation Working

Sinewave Generation now fixed and should work okay (again can't test
fully without LCD). But from the debugger window it appears to work
fine. Also it uses 2D array reference as input, this has been tested and
works okay.