find minimum monthly payment using exhaustive and bisection method