public static Vector add(Vector op1, Vector op2) throws DimensionMismatchException {
		if (op1.getDimension() != op2.getDimension()) {
			throw new DimensionMismatchException();
		}
		Vector result = new Vector(op1.getDimension());
		for (int i = 0; i < result.getDimension(); i++){
			result.setComponent(i, op1.getComponent(i)+op2.getComponent(i));
		}
		return result;
	}