Fixed bugs from 1.0 also did bubblesort