Compute nth term in Fibonacci sequence