calculates the nth element of the fib list with lists