adjacency matrix: use contiguous memory
table.tex using -seconds 1 and g++ 4.9.0