New algorithms for optimizing and linking conical intersection points