Add matrix-traversal