Changed linkedlist implementation to use stack nodes

linkedlist no longer creates nodes on the heap
when an item is to be inserted into the list