Add bubble sort and insertion sort

selection sort is modified -- define variables out of the loop