Reworking some things. Support computing median/mode for floats.

It turns out that this `Sorted` idea is a bust. Probably best just
to keep everything unordered and sort once at the end.