COI function

Computation of the cone of influence