added description of triDet alg. so matt can implement?