made bubble sort implementation