Currently runs in O(2^n) time. Need to cache the forward-backward function calls to bring the complexity down.
Currently runs in O(2^n) time. Need to cache the forward-backward function calls to bring the complexity down.