Reuse the existing array instead of remaking one, it's twice as fast: http://jsperf.com/typed-array-reuse-vs-recreate
Remove the use for manually providing offsets by implementing a rudimentary alloc function
Implement freeing data.