a) removed tri_edge.h/.cpp
b) Added preprocessor guards against repeating linear algebra routines