add max path sum