three methods to solve fibonacci problem