1 bug fix
Optimizing sorting of sub array
Adding documentation and time complexity
Pretty documentation