BUG: allow subclasses to override median

closes gh-3846