made column and input params multidimensional
fixed bounds calculation in avgConnectedSpanForColumnND
added test for AvgConnectedSpanForColumnND