implementing basic filters
simple median filter implementation