add matrices to class registry