Average accelerometer readings regularly if vector size is less than 3