add triplet_proximity.m