solved 001 and 002, fixed type related errors in 001, and used higher order functions to greatly improve the performance of generating fibonacci numbers