Yes. This sorting algorithm is now the fastest. This is not buggy at all. Time complexity:O(n+k)
I want to sort it fast so I update the screen after it is sorted.