Replaced HashMap with TreeMap (which is based on Red-Black Trees), making the code slightly (10%) faster. 
Replaced HashMap with TreeMap (which is based on Red-Black Trees), making the code slightly (10%) faster. 

rodsol/relex-temp,ainishdave/relex,opencog/relex,opencog/relex,virneo/relex,linas/relex,virneo/relex,williampma/relex,leungmanhin/relex,williampma/relex,leungmanhin/relex,virneo/relex,linas/relex,ainishdave/relex,leungmanhin/relex,linas/relex,anitzkin/relex,AmeBel/relex,ainishdave/relex,rodsol/relex-temp,rodsol/relex-temp,williampma/relex,williampma/relex,anitzkin/relex,rodsol/relex,anitzkin/relex,rodsol/relex,AmeBel/relex,rodsol/relex,opencog/relex,rodsol/relex-temp,rodsol/relex,anitzkin/relex,rodsol/relex-temp,anitzkin/relex,virneo/relex,AmeBel/relex,ainishdave/relex