Incremental algorithms for minimal length paths