merging DTW and FFT methods into one C file