changed the way 1D LUTs are generated from 3D LUTs