A Relational Memory-based Embedding Model for Triple Classification and Search Personalization