A general reinforcement-learning algorithm | ResearchPod