visualization for sorting methods. written in pure javascript and svg. inspired by @Norahiko