Fundamental Algorithms in Python