conver array to a cross link list