Popular algorithms implemented in Python