In case there are no result for generated query, don't try to weite them
In case of out.of.memoey, heap dump will be created automatically
Created a subset of quries that will be used
added cache for SimilarityVectors.
Test were refacfored since documents is no longer a class variable
Use SAP JVM; decrease number of queries