Median debug

+ There was a bug in calling the quickSelect algorithm from `median`, when doing a median on even-numbered DVs. The bug is fixed, and tests are in place to catch similar bugs.

+ I've simplified the quickSelectImpl() signature

+ `filterMedian` is updated to use the quickSelect algorithm, and is much faster now. This is something I personally really need.