Fleshing out DArrary

fleshing out the DArray class with new functions
Implementing DArray in businessrules

added a bunch of functions to DArray, committing before refactoring
bussinessrules