* @brief This function finds root of the equation in given interval i.e. (x1,x2). * @param x1,x2 values for an interval in which root is present. @param y1,y2 values of function at x1, x2 espectively. * @return root of the equation in the given interval. */