add improved bubble sort algorithm in c++