Added DC_list_to_array function to generate a array from a given list.