added additional methods and comments to the class SamplearrayList in the package collectionframework