Improve documentation of cache method
Add comparative performance tests using random dimensions