improved bubblesort
updated scale to milliseconds