Add hack to make test from README pass
Replace until loop with Enumerable#detect
Extract insertion of next book from if loop
Extract assignment of current_set from if block