Add optimized comparison operators.