BubbleSort & MergeSort algorithms implementation