bubble sort fix and new sort

attempted bubble sort efficiency fix and creation of new sort.