Allow typed arrays to be passed in as data
Allow typed arrays to be passed in as data

Instead of calling slice and sort on the data object, use
Array.prototype.{slice,sort}.call, so it'll work on Array-likes.
Specifically typed arrays.

mwcz/median-cut-js