Added function to get cell (x,y) in a table