Added moving average, changed to return 3 Doubles instead of CMMotion.