I am trying to dynamically allocate memory to a 2-D array through creating a pointer to a pointer. In other words, I am trying to emulate the following C code: