Sketching.

Inspired by http://www.ai.sri.com/~nysmith/papers/n65.pdf