Use list instead of vector for representing array

Because it is difficult to insert element for vector.