C++, Matrices, Lists, Classes