genleastcost function

Least-cost path analysis based on a friction matrix