fixed bug: can't use lower_bound() without sort()
Merge pull request #330 from pch957/tmp1

fixed bug: can't use lower_bound() without sort()