Update for tetrahedron method implementing in C