added main function to test the linked list class