Conversion of linklist into vector