Maze solver in C. test/optimisation/multi-thread/shared memory