I'm trying to rewrite all the algorithms I have learned before using Python. Hope someone will find this useful.