Added basic functioning. Serial version inserted. Tested and its working well. Have to parallelize and look to reduce running time. Also, have to make a GUI.