power and freq methods
implemented with timing, around 10x speedup compared to current DSP