Add array matrix implementation and Matrix interface.