program for all operations in linked list