coalition_matrix_cpp function

Get coalition matrix