Implementation of the Fast Doubling Fibonacci algorithm