speeding up WHIRLPOOL with LUTs