added functionality to the array sorting exercise

added functionality for storing, listing and sorting of the array. And
some other array manipulation and statistics :)