add median filter function
Merge pull request #1 from srush/median_filter

add median filter function