[algorithms][distance] fix unused variable warning when boost is compiled in release mode
Merge pull request #130 from mkaravel/fix/distance-unused-warning

[algorithms][distance] fix unused variable warning...