Add subtraction and comparison operators.
Make cppcheck-suggested performance improvement.