An Algorithm for Computing the Entropy of an Overlapping Dynamical System