1. Added JavaDoc comments to all methods.
2. Added and implemented additional methods for arrays of primitive
type.