Added trace and determinant methods