Median Filter

Added a median filter option, and increased the maximum allowed kernel size.