Introduced OPTIMIZER concept to combine, distance function, squared distance function for SSE, selecting the nearest function for minimizing or maximizing distance, and adapted k-means and EM-tree to use this.