Memory.java

updated to include toInt() functionality