MODIFY: Upload a wrapper function to run sorting algorithm.