matrices: use constexpr and add sizeof
matrix: use constexpr and add sizeof
vector: use constexpr and add sizeof
vectors: use constexpr and add sizeof
example: improve code