change overallSize to _newMainSize
Reserve reasonable vector sizes
Minor fix