Add transposition table

With a search depth below 9 there are no significant results and the
method with the hashtable might even be slower.
However, with a search depth of 10 for example, it is a little faster
and the difference will only increase at larger depths.