writing a quick bubble sort on int arrays