changes on  M algorithm/traverse_hash.pl