Proposal for improving performance of TreeMap and others