Learning Inverse Dynamics for Robot Manipulator Control