Using arrayList bubblesort