added a function to calc bases covered by a certain other set of ranges