C++ maze generator.