Added function to prune exemplars down to a set number