functions to extract row and column from index added
Row/column functionality added