matrix A & B created