area & perimeter of a triangle