lower_bound algorithm

It lets find a place in decreasing sequences to append to.
New line at end of file