Massive redesign of Maze Algorithm.

Much, much, much faster. Less memory used.