Init 2 dim array with 2 mallocs.