linked list insert, delete and reverse