Added the two comparisons that are needed to std algorithms