I think the rangeSearch would be much faster than the previous iterating method.