Added API for removing duplicate elements Fixes #3