Matrix, subsets, subtring