Move private stuff to the bottom of Memory class, and public stuff to the top