construction of front in linked list data structure