Some algorithms and data structures implemented with python