--- from: http://rosettacode.org/wiki/Median_filter note: Image processing