Vector Doubling

Does the doubling of the vector happens after pushing the last element or when the after pushing it finds out vector is full and then doubles itself.

@ayusdas2000 While pushing the element it checks when the space is available or not, if not available then it first allocated the space and then assign that element to vector.