@Override
    public int numActiveElements() {
        return values.length;
    }
@Test
    public void activeElements() {
        SparseVector s = generateVectorA();
        assertEquals(5, s.numActiveElements());
    }