Fix computeTriangleArea function