Update greedy matrix.c