MPU 9150 with DMP (Intel edison)

Ive got MPU 9150 with motion processor insode. Intel Edison board uses arduino inside.
I can now retrieve the DMP (digital motion processor) data. But, I need to track the position.
Are there any libraries allowing to do that?
The data I receive are:
quaternion components
yaw/pitch/roll angles
acceleration components

Using that data what should be the next procedure to track the position of an object?

You would need to integrate the acceleration components twice. I don't know how good the DMP's acceleration output is, but any time you integrate real sampled data you will have some error, and when you integrate twice your error will be compounded, meaning you probably won't get a good estimate of position, even though the DMP probably puts out fairly accurate accelerations.