Added mat_extractrows() and mat_extractcols().