the first sort algorithm to be implemented