Finding the V-Optimal histogram (part 1) - Minimizing the squared error