Re-factored vector_t implementation.