Updated getAddressOfUnusedMemoryOfSizeN

TODO
1. Incorporate self.used in Memory
2. Refactor getAddressOfUnusedMemoryOfSizeN for speed