Implementation of median and low-pass

http://en.wikipedia.org/wiki/Median_filter & http://en.wikipedia.org/wiki/Low-pass_filter