[boost] Fast nth-elemnt on the segment