bubblesort for inventory