Replaced dual array with single array in sparse vector
Fixed test class