Added const to det() in Triangle.cpp