creates matrices and multiplys them