Classic Algorithms implemented in Python