added the creation of a square wave functions
added the creation of a square wave functions