Cubically convergent Steffensen-like method for solving nonlinear equations