wrote bubble and selection sort