Implement the calculation of the volume of a 3d simplex in C for performance, and revert to assigning a volume of -1 to protruding cells.