Added inverse LUT computation