fix bubble sort and add selection sort