made most instance variables final; added setOrderWeight() to SortOrderAndStatsMetric