path sum reduce