interactive D3.js visualization of insertion sort