Implementations of some basic algorithms and data structures in Python