add range version of insert()