Dilate and Erode filter implementation

Implemented Dilate and Erode filters. Also updated the example to show these two filters.