Creating subsets of vectors