Add triangle API
And a triangle-box intersection code