Two-dimensional magnetohydrodynamic studies of implosion modes of nested wire array z-pinches