Adding insert function and tests
refactoring append to use insert
Adding prepend method and unit tests