Graph.getDistance separated to 2 parts (Manhattan-d. + lin.conflicts)