static double[][] add(double[][] matrix1, double[][] matrix2){
		double[][] sum = new double[matrix1.length][matrix1[0].length];
		for(int i = 0; i < sum.length; i++)
			for(int j = 0; j < sum[0].length; j++)
				sum[i][j] = matrix1[i][j] + matrix2[i][j];
		
		return sum;
	}