Cpp version added for Sound of Sorting.