Broken impl of 2d selected dense matrix (gotta run, can't fix it now).