added test cases for lab5, everything works, now going to valgrind