private ArrayList<Rod> greaterRevenue(ArrayList<Rod> left, ArrayList<Rod> right) {
		if(left == null) {
			if(right == null) {
				return null;
			}
			return right;
		}
		else if(right == null) {
			return left;
		}
		else {
			int sumLeft = 0;
			int sumRight = 0;
			for(Rod rod : left) {
				sumLeft += rod.getPrice();
			}
			for(Rod rod : right) {
				sumRight += rod.getPrice();
			}
			
			if(sumLeft >= sumRight) {
				return left;
			}
			else {
				return right;
			}
		}
	}