Make positions within range O(1)