Revert "Changed definition of duplicate so that it's easier to see the pattern in how it works in different dimensionalities."

This reverts commit ecd0b90524fc0e403825c9bec9f891a474a59aba.