add weight to astar_path_length's call to astar_path
Merge pull request #871 from tdihp/patch-1

add weight to astar_path_length's call to astar_path