Removed MIN_QUALITY variable (replaced by MIN_TET_QUALITY). A bit of renaming and clean up in remove_degenerate_tets().
Cleaned up the remove_degenerate_tet function and simplified the related permute_nodes function.