Working version supporting custom interconnectivity
Fixed package-list matrix being low on memory bug. Stable version. If used for interconnectivity higher than 15, the dendparams matrix will BLOW UP due to it holding up to 15 neighbors. Consider dynamic allocation.