two table LUT works in matlab