Implementation of Mazes using Disjoint Sets and Pathfinding Algorithms