Added fast operator== and operator!= for gray/gray, gray/value and value/gray comparisons.