Array.remove for removing elements