algorithms and datastructures implemented in python 2.7