Simple C++ program for computing matrix determinant