Sorting Array Without Sort Method In Cpp