Fixed bug where dimension of structure matrix was inidilized as numCols*numRows. Fixed it to be  numRows*numCols. This caused creation of new structures for scans with unequal rows/columns to fail.