new template segregated_vector
implement vector and segregated_vector resize