Learning Algorithms in Strategic Environments