Initial version of quick median.