Added inserted and removed methods, and hashmap