Computation of p_conn now done for all sources at once via vectors
vectorization for input and get_p_conn complete, now tuning