Learning control algorithm for nonlinear maps