Higher-order convergence algorithm for reciprocal and square root