insideIndex function

Index of the triangle containing a point.