Updated SampleArrayList and CollectionDemo classes in the collectionframework package