Made the det() method in Triangle.h file const