C++ example works for building a matrix and solving a system.