Changed Dimension(and its iterator) to iterate only in given index range.
This was used for linear interpolation speed-up