Improved the latency of ResultGears by skipping middle frames.
Improved the latency of ResultGears by skipping middle frames.

* The new implementation analyzes only the first and last frame.
* It improves the latency more than 25 seconds in my machine (MacBook Air 2014)

Before:
  42.41s user 8.86s system 110% cpu 46.364 total
  43.02s user 8.86s system 109% cpu 47.299 total

After:
  14.63s user 1.83s system 111% cpu 14.702 total
  14.63s user 1.55s system 114% cpu 14.142 total

deathmetalland/IkaLog,hasegaw/IkaLog,deathmetalland/IkaLog,hasegaw/IkaLog,deathmetalland/IkaLog,hasegaw/IkaLog