added matrixSwap(), matrixSort(), randMatrix()