matrixExtract function

Reconstruct matrix from multi-line text output