Add functions to get matrix row and column

Add functions to get matrix row and column.