Implemented array.remove().