defined and proved log^2(n) version of size

but the extraction is terrible. Two problems:

- the 999 that I stuck in there should really turn into a runtime error
- the match expansion duplicates code

So I added "extraction" to all of the todo items, since this needs to be checked...