Is TreeMap really needed or would HashMap suffice?