Added a new constructor in vector