Implemented splice and noticed a minor error with the main.cpp splice tester.

Implemented splice. Also, in the main.cpp testing function for splice(), both error statements that say "I was expecting this, but you had this" both used the res1[], when the second error statement should have been referring to res2[], which contained the expected data for testList2. I fixed this error in my main.cpp code.