Add JavaDoc.
Parameterize size of caches as power of 2.