add malloc failure handling in array.c
add malloc failure handling in array.c's dynamic array allocation functions. At the moment possible errors are not catched
add malloc failure handling in array.c's dynamic array allocation functions. At the moment possible errors are not catched