Added an advanced hash function (not tested)
Changed getBest() in AStarSearch saving the best value instead of
searching every time over the whole set of explored nodes