Added algo.py file. Most algorithms are in here for now