Do some refactoring

1. change indexes i,j with row, col
2. change free string "" with string.Empty