Added HDI

Added HDI generic plus a range of methods, as well as documentation on
testthat test file.
Changes to figures for hdi help page