cleaned up algorithms.py
cleaned up algorithms.py