Define median
Median is defined as the straight line joining the vertex and the opposite side of a triangle.