Separate less() from the algorithms