Improvements to prevent corruption of the minimum value,
Combined redundant classes (ScoredItem and ErrorAndCount),
Prevent ever-increasing variable "size".