Tensor-Based Algorithms for Image Classification