simple CUBE LUT parser based on https://github.com/thibauts/parse-cube-lut/blob/master/index.js