Use [].length to truncate an array in Vector.js
More consistency in defining tests
Stick to sorting integers