Median Problems in Networks