Added Memory converter to Java