Relationship between genetic algebras and semicommutative matrices