Fixing kernel discretization bug with units.
Add inner product distances to profiling script.