Implemented calculation of unique crystal contacts