Added the first version of the matrix storage

The class definition included in the commit provides a way to store
values in a matrix-fashion style.