Added hashing method for BaseVector