added phasor sum function to coocox