Getting displacement from accelerometer data with Core Motion | Hacker News Reader