Optimization And Design For Automation Of Brachytherapy Delivery And Learning Robot-Assisted Surgical Sub-Tasks