Preparation for #19

DM and IRR calculations now use Boost algorithm