computing the nth fibonacci number