Move types declaration to types.go and function attach to ByDist and Search in types_func.go
Add function and new fields to the Node struct for processing the gravitational potential.
Add test function for the potential calculation.
Add Mass fields to the Node struct for having the gravitational potential going a little bit faster.
Add TestTotalPotential function for test purpose