Mergesort working, don't know if it's the best implementation.
A longest substring implementation. Around k*(n**2)/2 cycles.