Add benchmark to test.js.
Fix updating with short inputs.

Add test.

Closes #2.
Add failing short input test

Closes #1
merge
fix partial update test
1.0.1