Implemented MD5 based duplicate detection (see isse #16)