Adding matrix submodule