Project Euler #82: Path sum: three ways