Probabilistic modelling of least cost paths

WIP, will update soon.