Added iterator mergesort that sorts a generator of a defined size.
Changed structure, made more modular.