Improved selection sort, added bubble sort.