adding Collections algorithms