added function coord_2d_area_triangle