A family of two-point methods with memory for solving nonlinear equations