SubsetMatrix function

Subset matrix rows and columns