Which important Chinese invention was first used in divination and then in navigation?

**********