support getCloestIndex on big array