Adds container interface

The `matrix` class satisfies the requirements of `Container`.