Fix issue 15, extract code into is_row_equal
Merge pull request #25 from tibaugasc/issue15

Fix issue 15, extract code into is_row_equal