A Framework for the Cooperation of Learning Algorithms