Manipulating arrays with push, pop, shift, unshift, splice,reverse, and sort