ReferenceKey_HashMap

Changed HashMap to use a class ReferenceKey. Added an inverse function
for PositionType enum.