public boolean matchPatterns(String[][] arr){
	   if(curArr == null || arr == null)
	       return false;

	   if(curArr.length != arr.length)
	       return false;

	   for(int r = 0; r < curArr.length; r++){
	       if(curArr[r].length != arr[r].length){
		   return false;
	       }

	       for(int c = 0; c < curArr[r].length; c++){
		   if(!curArr[r][c].equals(arr[r][c])){
		       return false;
		   }
	       }
	   }
	   return true;
	}