Reorder By Pattern Match
reorderByPatternMatch(P, matchTo)
P
matrix to be matched
matchTo
matrix to match P to
matched patterns