fixed insert in linked list to O(1)