multiply square matrix