do not split thresholds in two lists, compute inverted ones in place