fixed first attempt at problem 18 - maximum path sum 1