Switch lut to bit match

it’s quite a bit faster in java