Fixed infinite loop in bih caused by small triangle.
Add self-intersection bias parameter
Merge branch 'fix-bih-infloop'
Merge branch 'self-intersection-bias'