Matrix and Tensor Features for Discriminative Learning