Fixed caching, so things run much faster.  Added some tests.  Added ordinary stratified bootstrap.