implement array function to create an all nil element array.