1. Add the beacon based compression algorithm.

2. Modify the trajectory serialization and deserialization of compressed trajectory.