Added calculation of a single representative in the histogram plus the Sum of Squared error to this.