mininum distance of 3-tuples: Alibaba 2014