added lca
minor change
implemented fft