check_G_mat function

Check the contraints of KMC