bubble sort is working for float datatype