How To Implement A Sorting Algorithm