Bubble sorting made easy