added initial working Edge Decection code