Seperated main function from BubbleSort to SortMain