Improved algorithms for determination of particle directions with Timepix3. (1st January 2022)