Fixed bug in binning.

Truncation not applied during the binning of the data meant that users
had to truncate manually before calling ds(). This has been changed so
truncation of the distances happens at binning time.