Update Memory.java

Fixed a bug in the updateBankQueues