fixed bug in list. added resizing to smaller array for hash_map