bubble sort with Java ArrayList in place