initializes
length
to zero
initialize(listname,plength)