Finished linkedlist implementations and delete node function