Got least-Double-weighted paths coded up