performed bubblestep sorting