Added equality and hash functions to vectors.