calc_prob_mat function

Calculate probability matrix from distances and dot products between neuron segments