getHMedian function

Get coordiantes of the median cell after the erode operation