TreeMap put() method in java