added bisection scala file