Function removeFromLongArray