Add function print_xor_results_for_matrix to get the output