use static for local functions
clean up Lut class a bit (needs more cleaning)
cleaned up Lut code a bit more
implement singleton-based global LUTs.