finish minimum path sum