use STL set_algorithm, last sample TLE, good. TODO