added hash map with linear probing