implemented the hashing of subgraphs-scores using maps. There is
probably a more efficient way to do that but this is the fastest in
terms of implementation