improvement in triangle construction by excluding impossible ones