public static double[][] removeRowColumn(double[][] origMatrix, int row, int col){
		double[][] destMatrix = new double[origMatrix.length-1][origMatrix.length-1];

        int p = 0;
        for( int i = 0; i < origMatrix.length; ++i)
        {
            if ( i == row)
                continue;


            int q = 0;
            for( int j = 0; j < origMatrix.length; ++j)
            {
                if ( j == col)
                    continue;

                destMatrix[p][q] = origMatrix[i][j];
                ++q;
            }

            ++p;
        }
        return destMatrix;
	}