Added median filter , an utility method and morphological gradient method