bubble sort functionallity completed