Update algorithms.py

couple of typos