various methods to solve nth fibonacci number