implement the Tree Step Search (TSS) algorithm for motion search, proposed by Koga et al. 1981. This dramatically speeds up motion search, and encoding in general. On an AMD E-450 nettop, encoding the sign_irene sequence now takes about 16.6 seconds, instead of 27.3 seconds with the exhaustive search.