The BEM Formulation Of The Distinct Element Method