LinkedlistIST implementation in java