bitbase 64bit optimizations

Store the KPK bitbase in 64bit ints and rearrange the index to optimize
for this.
This speeds up lookups by reducing bit twiddling and init (13.5ms to 8ms
) on my CPU.
(I assume this slows 32 bit in all cases but didn't test)