Adding CAT algorithm and white point adaptation. Adding conversion to YUV color space.