Including a new method called pop()

This method pop the element off the end of array.