added subsetting example, including subsetting matrix with drop=FALSE