For a memory palace, remember a place which you are well acquainted too and then while traveling through the place leave little smalls bits of what you are reading here and there. Whenever you want to recall that particular topic all you need to do is revisit that memory palace and recollect all that you had left behind. This way no matter how huge and difficult any topic is you will be able to remember it by heart.