Separate array for weights added wrt p_indices

p_weights array is arranged according to the ordering of p_indices