Refactor of ReferenceResolver
 & Described Strategy used for Hash Collision resolution

Signed-off-by: Marcel Valovy <marcel.valovy@oracle.com>