add array

add array.
add a function which judges if it's contained in an array.
add local variable.

Signed-off-by: Lindell Xu <lxu@vetronicsltd.com.cn>