Changed set function signiture
fixed set not increasing vector size
Examples