A Hierarchical Maze Navigation Algorithm with Reinforcement Learning and Mapping