diff --git a/reCTBN/src/parameter_learning.rs b/reCTBN/src/parameter_learning.rs
index 73193ca..fcc47c4 100644
--- a/reCTBN/src/parameter_learning.rs
+++ b/reCTBN/src/parameter_learning.rs
@@ -1,6 +1,7 @@
//! Module containing methods used to learn the parameters.
use std::collections::{BTreeSet, HashMap};
+use std::mem;
use ndarray::prelude::*;
@@ -168,14 +169,18 @@ impl ParameterLearning for BayesianApproach {
// TODO: Move to constraint_based_algorithm.rs
pub struct Cache<'a, P: ParameterLearning> {
parameter_learning: &'a P,
- cache_persistent: HashMap