added IndexedValues structure -- representing a sequence of values,
together with an index -- a map from each value to its ordinal numbers;
now representing dimensions as IndexedValues;
2 regression tests fail -- they are related to the :multi type of
algorithm. I will try to understand this later.