Nonrecursive fft implementation for powers of 3