caching array.length, nth Fibonacci