Implementation of the Q-Learning algorithm including a simulator.