Calculates Fibonacci sequence up to nth number