closer_mark() to determine the index closer to the reference mark