Added If-main clause to Algorithm.py