Added qlearning trainer, for reinforcement learning tasks