Create 2D output of directions matrix