added implementation to input images, however the algorithm is very slow on inputs larger than 20x20. This scalability issue needs to be addressed