pub type SparseFreeEnergyMat<T> = HashMap<(T, T), f32, RandomState, Global>;