* Allow ignoring intermediate nodes when calculating WM size
* Fix the retrieval logic to avoid unnecessary code execution
* Making getWorkingMemSize(true) complexity O(1)
* Updated statistics to show STM size, WM size, immunized nodes without intermediate nodes count. Added two new statistics to track number of intermediate nodes in STM and WM.
* Correct the condition for counting intermediate nodes
* Restore the logic of retrieval 2/3 to avoid affecting updateAge
---------
Co-authored-by: matlabbe <matlabbe@gmail.com>