MyArray class implemented to support different functions of array
Sort Client implemented with main.