ENH: Initial commit of new PR re: dpc

These loops can be replaced with broadcast operation which will be much faster.