added order statistics class, and changed Metric to contain a cell array rather than an array indexed by iteration