Added row duplicate checking

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