AMS-02 Track reconstruction and rigidity measurement