Refactored vector<T>::insert method. Added test for it. Added const to parameter passing to method increase_capacity. Added check for self assignment. Replaced const_cast to code duplication for const and non-const subscripting operators.