Made the MetricKey sortable.  Changed metric storage to a TreeMap for
sorting.