Modified maze algorithms to use pseudo random number generation

Created central interface that enforces garbage collection