changed triangulation to a library in which functions are designed instead of a script. These functions are intended to interact with ta_solve functions