[array] Added second version of array program. Improved safety. Refactored iterator. Changed struct definition.