Update sorting.cpp

change n-1 to nn