Added factorial function, corrected typo in fib.h