shapley_weights function

Calculate Shapley weight