Fleshed out the vector implementation.