Algorithms implemneted in Python