bisec function

Bisection algorithm in Beta distribution