Finished the merge sort algorithm while adding 2 additional helper functions for it to work properly.