using std::lower_bound() to solve LIS solution.