implemented non-maxima-suppression for negative samples in training