Split grid into a package.
Added specialized row implementation to DenseGrid