Practicing some well-known algorithms in Python.