After working with 2D arrays for a while, I decided to create a convenient wrapper for operations. Here's the gist of it.