For ray-tri hit testing

Now the tri-ray hit testing functions are implemented in KSC code,
though not hooked up yet.