Bubble Sort on a mutable array. MAY NOT WORK QUITE RIGHT