Algorithms sort the array directly via pointer instead of returning it