Fixed implementation of triangle.area