Collection of algorithms in Python