finished bubblesort, updating file