"All test cases working except 7 + 9, no problems with valgrind"