An alternative formulation for the fast multipole method