Added comparison function to Pixel class.