Implemented half-version of distance calculator for dOdF (half version a bit slower than float version, but requires 2 times less memory)