Some classical algorithms implemented in Python