changed return value of positionToIndex from int to size_t
positionToIndex for RangeDim no longer throws outOfBounds when ...

the requested position is outside the range of ticks. Using of fabs
instead of abs.