Barthell index, draft

Various draft versions of the Barthell index. Needs harmonization before
implementation.