Fixed a misuse of summations in the solution to 2d.