creating a method to cache the already precomputed part of the program while calculating the fib series. also solving it by using @decorators