use bisection method to find likelihood levels