introduce Memory.size

PR for #48.