Fix: do not compute Track statistics when not needed!
Fix: fixed distance computation formula, avoid NaN for Math.acos() function