Numerical calculation of magnetization behavior for Co nanowire array