merge.weights_matrix function

Merge weights_matrix objects