Contact map implementation