MinDistanceOfThreeTuples-initilization
finish MinDistanceOfThreeTuples
fix issue in MinDistanceOfThreeTuples, and add unit test for it