Implement least_similar().