LinkedList impl in java princeton -ref