added lazy insert function to Vector;