Implemented isEqual method for all color spaces