Added 2d/3d arrays that use the new memory interface.
fixed typo