Determine row, col by coordinates

Close #5