Implementation of all sorting methods

dun did it