implemented a method to calculate fibonacci numbers in an recursive, iterative and caching way.