@nars1 Although @shabiel is the primary reviewer for this change, I think the overall _YDBAIM.m is mature enough for a review by you at your convenience.
_YDBAIM.m