Family of three-point methods of optimal order for solving nonlinear equations