Replace Memory.java with new JavaHeapSize.java - fixes #58