Add linked list function to add to head