creating matrix of karyotype events