Euler Problem 18 Maximum Path Sum I better, faster solution