pub type SparseFreeEnergyMat<T> = HashMap<PosPair<T>, FreeEnergy>;