Python implementations of some basic data structures