slightyly modify Vec class to support back_inserter algorithm