Improvement of the greedy algorithm for (n2 - 1)-puzzle. (2017)