need new version for BayesianWorkingMemory using deque