Hash for vector