Program that Detects When a Needle Intersects with Tissue for Robot-Assisted Surgery