Update Fibonacci Algorthim using closure