improving algorithm of I-collide