add hash for problem instances and embeddings