Update tetrahedron method in C