added more features to invert.cpp matrix inverse test program