added new class for a matrix version of the grid layout. As of yet untested.