Resolve B+ Tree insert() memory leaks

The test cases have been run through valgrind.