public static double[] plus(double[] g1, double[] g2){
		assert g1.length == g2.length;
		double[] result = new double[g1.length];
		for(int i = 0; i < g1.length; i++){
			result[i] = g1[i] + g2[i];
		}
		return result;
	}