Added equals method to vector and hashmap.