algorithms.c (ShakeNN.copy): Return the copy rather than the original.