isSquare function

Check if a matrix is square (and require the same row and colnames).