Remove the incredibly unnecessary `RefCell`.
Correct the implementation of `median`.

On empty data sets, median is not defined.
Derp. Fix a `max` bug.
Cardinality support for `Unsorted`.