Update MainForm.cs

Added credit to http://www.sergejusz.com/engineering_tips/median_filter.htm for three methods I copied