Project Euler #81: Path sum: two ways