fixed getFreq in ComplexNumber