Sparse Tensor class for Matlab