javascript BubbleSort
bitmap algorithm