ENH: MedianFilter exercise added, input component type is templated.

I think it would be better to just have image = reader->GetOutput();
It would be easier to read the code, and it also saves a couple bytes of memory since the information of the image doesn't need to be duplicated.