added color LUT function and enabled to handle more than 2 pointsets