added a utility routine to calculate frequency bins associated with an FFT.