z2 = np.append(z1, z1[-2, :].reshape(1, m1), axis=0)