Here is a link that one guy developed an implementation for multiple types of luts. You can contact him for his solution.