Fixed some issues with Euler Problem 12(TriangleDiv)