Implemented nonzero for array
Moved array implementation to array.c