Solved problem 81 (path sum: two ways).