Move all tests & implementations inside namespace CMatrix