Better dividing of tasks in perft