remove () and copyAndResize()

removed () was implemented. After removing the object from the array, it
calls a copyAndResize method which returns a smaller array with the
remaining elements