Adaptive Cognitive Training with Reinforcement Learning