linked list and 4 way linked list development