Improved bubble and selection sort, and added heap sort and quick sort