Update TDA_score.c