FFT implementation with sharing