Fixed infinite loop in bih caused by small triangle.

When triangles which are smaller than float epsilon exists, building BIH doesn't stop.