Changed math class to functions

wave_add: a simple application of sum for n wave arrays.
wave_diff: a method to subtract n wave arrays. Order of wave arrays
define order of operation for subtraction.