MARGE: Improving Math Reasoning for LLMs with Guided Exploration