implemented insertInPos for LinkedListStructure