If A(ā1,3),B(1,ā1) and C(5,1) are the vertices of a triangle ABC find the length of the median passing through the vertex A.