pathfind: now can plan diagonally

Signed-off-by: mkhropov <mkhropov@gmail.com>
pathfind: use precalculated tables to measure distances

Signed-off-by: mkhropov <mkhropov@gmail.com>