Update hash, remove flatten bug, add union_find, hash_map