Adding code for square wave oscillator

Added code for square wave oscillator, based on code for sin oscillator.