Algorithms implemented in Python