Adding a __hash method to Vector.