add sparse and dense versions of vector set