add method print2dArray