% row - returns selected rows of a 2D array
% row :: [[N,M]->A], [[L]->[N]] -> [[L,M]->A].
function Y=row(X,I), Y=X(I,:);
