Sort strings with O(nlogn) time and O(n^2)time

Heap sort and bubble sort