Heap allocated array example updated and uses delete

I made the heap-allocated array example a little more realistic and included use of "delete".