Replace vector with map to reduce memory usage
More testing
Merge pull request #8 from Ation/use_set_in_node

Use map in node