Implement operators 'less' and 'greater'