Use double for translation distance

This resolves issue #138