add small matrix