Calculate area of a triangle.