Implement is_sorted() with adjacent_find()