TreeSet add() method in java