more Interrupted Bubble Sort

Lua, Ruby