prepare_mdi function

Create the BEST-COST Multidimensional Deprivation Index (MDI)