added support for duplicates in src/dataset.js
added support for duplicates in src/dataset.js