Mathematicians help build better surgical plans