For the matrices, you could just use arrays, and probably make a class
Matrix to abstract away what the matrix is actually made of.
For the storage of the objects, use a matrix of
List<WhateverKindOfObjectYouAreConstructing>s. You can
then quickly find the list for a given entry, and then quickly iterate