Removing three no longer needed static methods from SHAMap.

The removed methods are:
 - getTreeNodeSize()
 - sweep() and
 - setTreeCache()
Callers of these methods are also patched up.
Add TreeNodeCache argument to the SHAMap constructor

This change makes it easier to unit test the SHAMap and TreeNodeCache.
Primary fall out from this change was fixing up calls to the SHAMap
constructor.