function[A,B] = pad(X, Y) 
	sx = size(X);
	if(length(X) < length(Y))
		if(sx(2) == 1) 
			A = [X; zeros(length(Y) - length(X), 1)];
		else
			A = [X zeros(1, length(Y) - length(X))];
		end
		B = Y;
	elseif(length(Y) < length(X))
		if(sx(2) == 1) 
			B = [Y; zeros(length(X) - length(Y), 1)];
		else
			B = [Y zeros(1, length(X) - length(Y))];
		end
		A = X;
	end
end