Trying to implement an in-place version of merge-sort while maintaining some time complexity.