merge, selection, and quick sort implemented