Refactored Vector median into the Vector interface