Fixed bug in addPosPatterns algo.
Renamed PatternCalculator class to Patterns.
Now able to create persistent cache for all counts neede for test file.