SAMULE: Self-Learning Agents Enhanced by Multi-level Reflection