Put functions inside MedianProcessor class to remove some templating support code