Grid function for HW 3- creates a grid of any row and column dimensions.