added CMatrix sources and main.cpp