Fast distance