Auxiliar code and Bubble Sort