reshapeFlowMat function

reshapeFlowMat