Added row duplicate checking

Wrote a simple block to check whether rows have duplicates. This should
be extracted into a separate function later. #6
Adjusted row checking code

Row checking didn't seem to work the way I wrote it before. wrote a
less-clever and also much less efficient way to check.
Merge pull request #11 from DavidGinzberg/Check-Row

Add row validation