Hierarchical Memory for High-Efficiency Long-Term Reasoning in LLM Agents