update bunblesort functions