Finding the root of a polynomial using bissection method