Update diagonal.c