Improved Gesture Trajectory Reconstruction from Acceleration Values for a Device Independent Gesture Recognition Approach