added metrics/ dir with Metric interface and SortOrderMetric class