fixes insert_end method.
adds squish method which deletes consecutive runs of duplicates