Added DIAG method to matrices