Introduced new tet subdivision code