TT+perft optimization.