Adding multi-memory model-based TRBM and DBN