Internal Reinforcement Learning