P18 Maximum path sum I