Correct for row major ordering of C-arrays. Match cells NSArray to row major ordering as well.
Merge pull request #4 from meganlshao/dev

Correct for row major ordering of C-arrays. Match cells NSArray to row m...