Update the probability values for specific data points that change between the heaps.
update_weights(temp_weights, weights, index_list, num_clusters)
(matrix): A matrix of probabilistic weights for leaf data.
(matrix): A matrix of probabilistic weights for all data.
(vector): A vector of indices.
(numeric): The number of clusters.
Updated probabilistic weights matrix.