Fibonacci sequence with O(log(n)) complexity