ADT impelmentaion for linked list using pointers