added a check for power-of-two sizes in fft function