Added C code to test is a point is in a triangle