More memory efficient solution to problem 2. Move fib generator to utils