Integrating Efficient Model-Learning and Problem-Solving Algorithms in Permutation Environments