Project Euler #83: Path sum: four ways