ToM: Leveraging Tree-oriented MapReduce for Long-Context Reasoning in Large Language Models