trying to implement the diversification algo
missed this one...
add debugs
fixed, forgot we cannot know the size of an array behind a pointer so it must be passed explicitly