Added a Maze class with a perfect maze generation method.