Calculates terms in Fibonacci sequence