Rename MemoryHeuristics to WeightBalancingMemoryHeuristics

[#49694523]
Rename to WeightBalancingMemoryHeuristic and avoid warnings

[#49694523]
Rename test

[#49694523]
Factor out memory heuristic from OpenJDK usage

[#49694523]
Factor out MemoryLimit class and memory size methods

[#49694523]
Encapsulate memory sizes.

[#49694523]
Align all memory sizes

[#49694523]