Created fibonacci function using pascals triangle