Changed factor.c to take single number as input.
Converted nested into normal function (clang does not support nested functions in C).
Add input to fft.c.