Implemented itertools and a few more things