Separate implementation of Fft

Fixes #43.