Dirty version of linear median.