Simplified distance calculation (use vector scalar multiplication instead of geron formula)