add to head and reverse linked list