Avoid Math.sqrt() in ShakeDetector