Improved performance of Connectivity class
Fixed error caused by 1D signals