implement Fib by using python dict