commonly used algorithms in python for reuse in other projects