Implementation of various data structures and algorithms in Python