Swapped the positions of the Y and Z outputs of the halfsubtracter