Common Algorithms Implemented in Python