Data Structures Java CS203 LinkedList practice