added asserts for test inserting word into a sorted list