D3 visualization of a bubble ort algorithm