add a function for the linear list written by array.