Fix potential bugs in transposition table that may affect implementation
of negascout and MTF-f