Closes #27 (closed)
This is a partial solution for #23 (closed). It does track the indices when merging but it does not discard duplicates.