BubbleSort: Tested for structures