BubbleSort: Fixed bug for structure test