Change All-Pairs to 2D and put printfs in kernel 5