Added a 16-bit capable version of LUT.