in the process of writing general function to determine rows and columns of 2D array from text file