Changing internal representation of BDPs. Fixes #7.