Finished the test programs and using Valgrind. Fixed HUGE memory leaks in AStar.