Add Chain Codes

Now can obtain edges from input images