Add tests for Matrix get/set and code implementation.
Generify Matrix.