bubble sort and heap sort