Refactored LUTs to use typed arrays. Avoid reallocating window LUT.
Relates to #34.