reShape function

Reshape Matrices and Serial Data