extending capsule-capsule distance computation

 I have re-edited pull request #18 in order to highlight real differences against re-indentations.
Some tests fail on my computer (ubuntu 12.04 32bits), but they also fail with the official version.