SCALE integrated into getSize,getData; Algorithm works on mMat