extension to array class that allows the user to grab square chunks in a 2d array