Fast Fourier Transform algorithms from Processing's Minim audio library, adapted to work in android