added sawtooth.m and square.m