algospot drapa completed

bisection method