Fix tests
Make profiling run
BUGFIX: Use sample_without_repeats for NK

Numpy doesn't have this function (yet), but we put in one that works for
short arrays